import axios from 'axios';

//获取用户列表
let list = (params) => axios.get('/api/admin/list', { params });
//获取管理员资料
let info = (params) => axios.get('/api/admin', { params });
//编辑账户信息
let edit = (data) => axios.put('/api/admin/account',data);
//修改
let update = (data) => axios.put('/api/admin',data);
//删除管理员
let remove = (params) => axios.delete('/api/admin', { params });
export default{
	list,
	info,
	edit,
	update,
	remove
}